Skip to content

docs(contributing): a matching table lives beside its one owner - #2492

Merged
dan-petty merged 2 commits into
mainfrom
docs/1016-table-owner-rule
Oct 28, 2026
Merged

dan-petty merged 2 commits into
mainfrom
docs/1016-table-owner-rule

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

The documents told contributors to declare every list, tuple or frozen set that matches, classifies or filters values in src/devops_cli/config/constants.py or src/devops_cli/config/defaults.py. A table that one module reads thus lived in a file of another package, far from its owner. The owner decided on 2026-10-22 that a table lives beside its one owner and moves to config/ only when a second package imports it, that no constant moves in this change, and that no check enforces the placement.

  • CONTRIBUTING.md, "Closed Lists and Standard Parsers": a matching table is a named module-level table beside its one owner, the module that reads it or the constants.py of its package. It moves to config/ only when a module of a second package imports it. A change to the owner of a single-package table in config/ moves the table to its owner.
  • CONTRIBUTING.md, the Constant row of the naming table: _<NAME> in its one module, <NAME> in a package's constants.py, and CONST_<NAME> or DEFAULT_<NAME> in config/ for a name that two or more packages import.
  • docs/ROUTINE_TASKS.md: the matrix row, the flowchart step and step 3 of the inner loop state the same rule and point to CONTRIBUTING.md.

AGENTS.md already holds no copy of the rule: it sends code conventions to CONTRIBUTING.md, which holds the parser rule of the decision. The generator of AGENTS.md and RELEASE_CYCLE.md no longer state the rule. The items #1025 to #1032 move the single-owner tables of their packages under this rule.

Closes #1016

Change: openspec/changes/archive/2026-10-28-1016-table-owner-rule/

The documents told contributors to declare every list, tuple or frozen
set that matches, classifies or filters values in config/constants.py
or config/defaults.py, so a table that one module reads lived in a file
of another package. Per the owner decision of 2026-10-22 on #1016, a
table now lives beside its one owner and moves to config/ only when a
second package imports it. CONTRIBUTING.md and docs/ROUTINE_TASKS.md
state the rule, and the naming table gives the name of each place. No
constant moves and no check is added.
@dan-petty

Copy link
Copy Markdown
Owner Author

Check results:

  • uv run devops docs check: all documentation files are up to date.
  • uv run devops docs generate --sync-readme: no generated file changed.
  • openspec validate 1016-table-owner-rule --strict: valid; skip_specs is set, because the change edits two documents only.
  • git grep for constants.py, defaults.py and "centralize" over the documents (archives and CHANGELOG.md excluded): no sentence tells readers to declare every table in config/.
  • The pre-push hook (fast static checks) passed.

Pending a person: review the diff in tuicr (tuicr -r origin/main..HEAD).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(agents): a matching table lives beside its one owner, and moves to config/ only when a second package imports it

1 participant